package org.donhuan.rms.ui.listeners;

import java.awt.Color;

import org.donhuan.rms.ui.dialogs.LoginDialog;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.widgets.Display;

public class LoginListenerAdapter implements LoginListener {
	private Display display;
	private LoginDialog loginDialog;
//	private Image imageErrorMessage = AbstractUIPlugin
//			.imageDescriptorFromPlugin(Activator.PLUGIN_ID,
//					ISharedImages.IMG_ELCL_STOP).createImage();
	private Color errorMessageBackground=new Color(255,255,0);
	
	public LoginListenerAdapter(LoginDialog loginDialog){
		this.loginDialog=loginDialog;
		this.display=Display.getCurrent();
	}
	public void loginError(String message) {
		MessageDialog.openError(null, message, message);
	}

	public void loginComplete() {
		MessageDialog.openError(null, "", "Completed");
		// TODO Auto-generated method stub

	}

	public void loginCanceled() {
		MessageDialog.openError(null, "", "Completed");
		// TODO Auto-generated method stub

	}

	public void loginStarted() {
		MessageDialog.openError(null, "", "Completed");
		// TODO Auto-generated method stub

	}

}
